/*
 * @Date: 2023-03-14 13:09:41
 * @LastEditors: Chuying
 * @LastEditTime: 2023-03-27 17:24:51
 * @Description:
 */
import { Module, forwardRef } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { User } from './entities/user.entity';
import { UserInfo } from './entities/user_info.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
// import { AuthModule } from '../auth/auth.module';

import { CommonModule } from 'src/modules/common/common.module';
import { Friend } from './entities/friend.entity';

@Module({
  imports: [TypeOrmModule.forFeature([User, UserInfo, Friend]), CommonModule], // 声明模块
  controllers: [UserController], // 引入控制器
  providers: [UserService], //  引入服务
  exports: [UserService], // 暴露服务 暴露出去之后引入当前模块就可以使用当前模块的服务
})
export class UserModule {}
